home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1996 March / PCPRO0396.ISO / march / blender / shared.dir / 00835_MOVIE SCRIPT.ls < prev    next >
Encoding:
Text File  |  1995-09-24  |  3.3 KB  |  123 lines

  1. on startMovie
  2.   global i, j, k, n, o, ADSET, BLENDER, DEST, volume, PLAYRATE
  3.   set the exitLock to 1
  4.   set the volume of sound 1 to 255
  5.   set the volume of sound 2 to 255
  6.   SETSPEAKER()
  7.   puppetTransition(0)
  8.   puppetPalette(0)
  9.   cursor(0)
  10.   set i to 0
  11.   set the keyDownScript to "checkKey"
  12.   if the machineType = 256 then
  13.     repeat with n = 500 down to 1
  14.       set the purgePriority of cast n to 2
  15.     end repeat
  16.   end if
  17. end
  18.  
  19. on initRearWindow theColor
  20.   global rwObj
  21.   if the machineType <> 256 then
  22.     if objectp(rwObj) then
  23.       rwObj(mdispose)
  24.     end if
  25.     set rwObj to RearWindow(mnew, "M")
  26.     rwObj(mIndexColorToWindow, theColor)
  27.   end if
  28. end
  29.  
  30. on disposeRearWindow
  31.   global rwObj
  32.   if the machineType = 256 then
  33.     nothing()
  34.   else
  35.     if objectp(rwObj) then
  36.       rwObj(mdispose)
  37.     end if
  38.   end if
  39. end
  40.  
  41. on CONTROLS
  42.   global CONTROLWINDOW, DEST
  43.   if objectp(CONTROLWINDOW) then
  44.     forget(CONTROLWINDOW)
  45.   end if
  46.   set horzOrigin to the stageLeft + 448
  47.   set vertOrigin to the stageTop
  48.   set CONTROLWINDOWrect to rect(horzOrigin, vertOrigin, horzOrigin + 192, vertOrigin + 60)
  49.   set CONTROLWINDOW to window "CONTROLS"
  50.   set the rect of CONTROLWINDOW to CONTROLWINDOWrect
  51.   set the fileName of CONTROLWINDOW to DEST & "CONTROLS"
  52.   set the titleVisible of CONTROLWINDOW to 0
  53.   set the modal of CONTROLWINDOW to 0
  54.   set the windowType of CONTROLWINDOW to 2
  55.   open(CONTROLWINDOW)
  56. end
  57.  
  58. on endMOVIE
  59.   global CONTROLWINDOW, DEST
  60.   installMenu(0)
  61.   if objectp(CONTROLWINDOW) then
  62.     forget(CONTROLWINDOW)
  63.   end if
  64.   set horzOrigin to the stageLeft + 160
  65.   set vertOrigin to the stageTop + 130
  66.   set CONTROLWINDOWrect to rect(horzOrigin, vertOrigin, horzOrigin + 320, vertOrigin + 220)
  67.   set CONTROLWINDOW to window "CONTROL"
  68.   set the rect of CONTROLWINDOW to CONTROLWINDOWrect
  69.   set the fileName of CONTROLWINDOW to DEST & "CONTROL"
  70.   set the titleVisible of CONTROLWINDOW to 0
  71.   set the modal of window "CONTROL" to 1
  72.   open(CONTROLWINDOW)
  73. end
  74.  
  75. on menu
  76.   global CONTROLWINDOW, DEST
  77.   if objectp(CONTROLWINDOW) then
  78.     forget(CONTROLWINDOW)
  79.   end if
  80.   set horzOrigin to the stageLeft + 468
  81.   set vertOrigin to the stageTop
  82.   set CONTROLWINDOWrect to rect(horzOrigin, vertOrigin, horzOrigin + 172, vertOrigin + 408)
  83.   set CONTROLWINDOW to window "MENU"
  84.   set the rect of CONTROLWINDOW to CONTROLWINDOWrect
  85.   set the fileName of CONTROLWINDOW to DEST & "MENU"
  86.   set the titleVisible of CONTROLWINDOW to 0
  87.   set the modal of CONTROLWINDOW to 0
  88.   set the windowType of CONTROLWINDOW to 2
  89.   open(CONTROLWINDOW)
  90. end
  91.  
  92. on HELPMOVIE
  93.   global CONTROLWINDOW2, DEST
  94.   set horzOrigin to the stageLeft - 288
  95.   set vertOrigin to the stageTop + 100
  96.   set CONTROLWINDOW2rect to rect(horzOrigin, vertOrigin, horzOrigin + 430, vertOrigin + 206)
  97.   set CONTROLWINDOW2 to window "HELP"
  98.   set the rect of CONTROLWINDOW2 to CONTROLWINDOW2rect
  99.   set the fileName of CONTROLWINDOW2 to DEST & "HELP"
  100.   set the titleVisible of CONTROLWINDOW2 to 0
  101.   set the windowType of CONTROLWINDOW2 to 2
  102.   open(CONTROLWINDOW2)
  103.   set the modal of CONTROLWINDOW2 to 0
  104. end
  105.  
  106. on stopMovie
  107.   finishMovie()
  108. end
  109.  
  110. on finishMovie
  111.   global CONTROLWINDOW, CONTROLWINDOW2
  112.   set the modal of window "CONTROL" to 0
  113.   set the modal of window "CONTROLS" to 0
  114.   set the modal of window "MENU" to 0
  115.   set the modal of window "HELP" to 0
  116.   if objectp(CONTROLWINDOW) then
  117.     forget(CONTROLWINDOW)
  118.   end if
  119.   if objectp(CONTROLWINDOW2) then
  120.     forget(CONTROLWINDOW2)
  121.   end if
  122. end
  123.